﻿using Grpc.Core;
using Grpc.Net.Client;
using App;

using (var channel = GrpcChannel.ForAddress("http://localhost:5174"))
{
    var client = new Calculator.CalculatorClient(channel);

    var inputMessage = new InputMessage { X = 1, Y = 0 };
    var result = await client.AddAsync(inputMessage);
    Console.WriteLine("result:{0};error:{1}", result.Result, result.Error);
}

Console.ReadKey();
